/**
 * caicongyang.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.caicongyang.design.proxy;

/**
 * @author caicongyang1
 * @version id: Proxy, v 0.1 17/5/13 下午8:17 caicongyang1 Exp $$
 */
public class Proxy implements Subject {
    private Subject subject;

    @Override
    public void request() {
        if (subject != null) {
            subject = new RealSubject();
        }
        subject.request();
    }
}
